 <meta charset="utf-8">
 <div class="box box-primary" id="app_authPermission_edit" > 
             <div class="box-header with-border">
              <h3 class="box-title">组织机构信息编辑</h3>
            </div> 
            <div class="box-body" style="overflow: hidden; max-width: 1200px ;min-height: 200px" > 
           	 <form role="form"  id="configEditForm" class="form-inline">
           	   <input type="hidden" id="id" name="id" vmodel="id" >
                </form>
                </div>
            <div class="box-footer">
                 <button type="button" class="btn btn-default" v-on:click="cancle">取消</button>
                 <button type="button" class="btn btn-info pull-right"  v-on:click="submitForm">提交</button>
              </div> 
               
<script type="text/javascript">
$(function(){
	initPageData();
})
var param=zfesLayerEditDg.getLayerParam();
var id=param.id;
var vm = new Vue({
        el: '#app_authPermission_edit',
         methods: {
        	 submitForm: function () {
        	    	if($("#configEditForm").valid()){
        	    		var formdata=zfesUtil.formToJson($("#configEditForm"));
        	    		 var url=host_auth+"sys/sysOrganization/sysOrganizationConfigure?id="+id; 
        	    		zfesAjax.ajaxTodo(url,formdata, function(data){
        	    			 alertSwal.successText(data.message);
        	    			 layer.close(layer.index);
        	    		})
        	    	}
        	    },
        	    cancle:function(){
        	    	 layer.close(layer.index);
        	    }
        }
    })
   function initPageData(){
	var url=host_auth+"/sys/sysOrganizationItem/loadOrganizationItemType";
	zfesAjax.ajax(url,{}, function(data){
		for(var i=1;i<data.length+1;i++){
			var url="/sys/sysOrganizationItem/loadOrganizationItemBytype";
			url+="?type="+i;
			var tag='<div class="form-group" id="orgType_div_'+i+'">';
				tag+='<km-select id="sequence" host="baseServer" url="'+url+'" vmodel="sequence'+i+'" name="sequence"  label="组织机构设置"></km-select>';
				tag+='</div>'; 
				$("#configEditForm").append(tag);
				ZVue.init();
		}
	});
} 
 </script>
</div>